﻿@ModelType List(Of SistemaINCA.GET_DETALLE_ACT_NOTAS_BYPERIODO_BYMATERIA_DATATYPE)

<h3>@ViewBag.NameMateria</h3>
<table id="table-det-notas">
    <thead class="table-col-titulos">
        <tr>
            <td style="background: white;">Actividad</td>
            <td style="background: white;">%</td>
            <td style="background: white;">Nota</td>
        </tr>
    </thead>

    <tbody>
        @For Each act In Model
            @<tr>
                <td class="col-titulos" style="text-align:left;">@act.ACTIVIDAD</td>
                <td class="col-datos" style="text-align:center; width:25px;">@act.PORCENTAJE</td>
                @code
                    Dim attr As String
                    Dim strDefault As String = "--"
                    Dim nota As Decimal
                    Dim notaStr As String
                nota = If(IsNothing(act.NOTA), 0, act.NOTA)
                
                If nota = 0 Then
                notaStr = "--"
                Else
                notaStr = Math.Round(nota, 1).ToString
                End If
                attr = String.Format("Nota={0}", notaStr)
                End Code
                <td @attr class="col-datos" style="text-align:center; width:25px;">@notaStr</td>
            </tr>
        Next
    </tbody>
</table>